package cn.allinmd.indi.applymodelxian.model.authenticate.bizz;

/**
 * @author: XianXueLiang
 * @date: 2016/6/22
 */
public interface IAuthModel<T> {
    void login(String name,String pwd,String authenticate,OnAuthStateListener<T> listener);
    void register(T t,OnAuthStateListener<T> listener);

    interface OnAuthStateListener<T>{
        void success(T t,String accessToken);
        void failure(int code,String msg);
    }
}
